package com.izhangqian.plugintest;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.izhangqian.pluginapk.BasePluginActivity;

public class PluginActivity extends BasePluginActivity {

    private ImageView mView;
    private TextView mTv;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_plugin);
        mView = findViewById(R.id.plugin_img);
        mView.setImageResource(R.mipmap.apple);
        mTv = findViewById(R.id.tv_plugin);
        mTv.setText(R.string.plugin_hello);

        mTv.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                FloatManager.getInstance().showWindow(mProxyActivity);
            }
        });
    }
}